package biz.ezcom.design.pattern.builder;

/**
 * 产品Product(人)的建造者类
 */
public class BuilderImpl implements Builder {
	private Product product = new Product();

	@Override
	public void createHeader() {
		product.setHeader("头");
	}

	@Override
	public void createBody() {
		product.setBody("身体");
	}

	@Override
	public void createLeftArm() {
		product.setLeftArm("左手");
	}

	@Override
	public void createRightArm() {
		product.setRightArm("右手");
	}

	@Override
	public void createLeftLeg() {
		product.setLeftLeg("左脚");
	}

	@Override
	public void createRightLeg() {
		product.setRightLeg("右脚");
	}

	@Override
	public Product getProduct() {
		return product;
	}

}
